home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / New System Software Extensions / QuickDraw™ GX 1.1.2 / Programming Stuff / QuickDraw™ GX Interfaces & Libs / CIncludes / PrintingDrivers.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-10  |  28.0 KB  |  957 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        PrintingDrivers.h
  3.  
  4.     Copyright:    © 1984-1995 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef __PRINTINGDRIVERS__
  13. #define __PRINTINGDRIVERS__
  14.  
  15. #ifndef __PRINTINGMESSAGES__
  16. #include <PrintingMessages.h>
  17. /*    #include <PrintingManager.h>                                */
  18. /*        #include <Printing.h>                                    */
  19. /*            #include <Quickdraw.h>                                */
  20. /*                #include <Types.h>                                */
  21. /*                    #include <ConditionalMacros.h>                */
  22. /*                    #include <MixedMode.h>                        */
  23. /*                        #include <Traps.h>                        */
  24. /*                #include <QuickdrawText.h>                        */
  25. /*                    #include <IntlResources.h>                    */
  26. /*            #include <Dialogs.h>                                */
  27. /*                #include <Windows.h>                            */
  28. /*                    #include <Events.h>                            */
  29. /*                        #include <OSUtils.h>                    */
  30. /*                    #include <Controls.h>                        */
  31. /*                        #include <Menus.h>                        */
  32. /*                #include <TextEdit.h>                            */
  33. /*        #include <Files.h>                                        */
  34. /*            #include <SegLoad.h>                                */
  35. /*        #include <Collections.h>                                */
  36. /*        #include <PrintingErrors.h>                                */
  37. /*        #include <graphics types.h>                                */
  38. /*            #include "math types.h"                                */
  39. /*        #include <font types.h>                                    */
  40. /*        #include <scaler types.h>                                */
  41. /*            #include "sfnt types.h"                                */
  42. /*    #include <PrintingResTypes.h>                                */
  43. /*    #include <Messages.h>                                        */
  44. /*    #include <Lists.h>                                            */
  45. /*        #include <Memory.h>                                        */
  46. #endif
  47.  
  48. #ifndef __PRINTING__
  49. #endif
  50.  
  51. #if defined(powerc) || defined (__powerc)
  52. #pragma options align=mac68k
  53. #endif
  54. struct gxManualFeedAlertPrefs {
  55.     long                        alertFlags;
  56. };
  57. #if defined(powerc) || defined(__powerc)
  58. #pragma options align=reset
  59. #endif
  60.  
  61. typedef struct gxManualFeedAlertPrefs gxManualFeedAlertPrefs, *gxManualFeedAlertPrefsPtr, **gxManualFeedAlertPrefsHdl;
  62.  
  63. enum  {
  64.     gxShowAlerts                = 0x00000001,
  65.     gxAlertOnPaperChange        = 0x00000002
  66. };
  67.  
  68. #define gxDefaultMFeedAlertSettings (gxShowAlerts | gxAlertOnPaperChange)
  69.  
  70. enum  {
  71.     gxCanConfigureTrays            = 0x00000001
  72. };
  73.  
  74. #if defined(powerc) || defined (__powerc)
  75. #pragma options align=mac68k
  76. #endif
  77. struct GXDriverOutputSettings {
  78.     long                        driverflags;
  79.     long                        outputSettings;
  80. };
  81. #if defined(powerc) || defined(__powerc)
  82. #pragma options align=reset
  83. #endif
  84.  
  85. typedef struct GXDriverOutputSettings GXDriverOutputSettings, *GXDriverOutputSettingsPtr, **GXDriverOutputSettingsHdl;
  86.  
  87. enum  {
  88.     gxInputTraysMenuItem        = -1
  89. };
  90.  
  91. enum  {
  92.     gxUseCustomIO                = 0x00000001
  93. };
  94.  
  95. #if defined(powerc) || defined (__powerc)
  96. #pragma options align=mac68k
  97. #endif
  98. struct gxIOPrefsRec {
  99.     unsigned long                communicationsOptions;
  100.     unsigned long                numBuffers;
  101.     unsigned long                bufferSize;
  102.     unsigned long                numReqBlocks;
  103.     unsigned long                openCloseTimeout;
  104.     unsigned long                readWriteTimeout;
  105. };
  106. #if defined(powerc) || defined(__powerc)
  107. #pragma options align=reset
  108. #endif
  109.  
  110. typedef struct gxIOPrefsRec gxIOPrefsRec, *gxIOPrefsPtr, **gxIOPrefsHdl;
  111.  
  112. #if defined(powerc) || defined (__powerc)
  113. #pragma options align=mac68k
  114. #endif
  115. struct gxPrintDestinationRec {
  116.     Boolean                        printToFile;
  117.     FSSpec                        fSpec;
  118.     char                        includeFonts;
  119.     Str31                        fileFormat;
  120. };
  121. #if defined(powerc) || defined(__powerc)
  122. #pragma options align=reset
  123. #endif
  124.  
  125. typedef struct gxPrintDestinationRec gxPrintDestinationRec, *gxPrintDestinationPtr, **gxPrintDestinationHdl;
  126.  
  127. #if defined(powerc) || defined (__powerc)
  128. #pragma options align=mac68k
  129. #endif
  130. struct gxPortListRec {
  131.     char                        firstMarker, secondMarker;
  132.     Handle                        iconSuiteHandle;
  133.     Handle                        outputDriverName;
  134.     Handle                        inputDriverName;
  135.     Str255                        iconName;
  136. };
  137. #if defined(powerc) || defined(__powerc)
  138. #pragma options align=reset
  139. #endif
  140.  
  141. typedef struct gxPortListRec gxPortListRec, *gxPortListPtr;
  142.  
  143. #define gxDeviceCommunicationsID (0)
  144.  
  145. #define gxPostscriptProductInfoType 'prod'
  146.  
  147. #define gxPostscriptProductNameID (0)
  148.  
  149. #define gxPostscriptVersionID (1)
  150.  
  151. #define gxPostscriptRevisionID (2)
  152.  
  153. #define gxPostscriptVMAvailableID (3)
  154.  
  155. #define gxPostscriptFontStreamTypeID (4)
  156.  
  157. #define gxPostscriptLanguageLevelID (5)
  158.  
  159. enum  {
  160.     gxAutoFeedButtonId            = 3
  161. };
  162.  
  163. enum  {
  164.     gxUnivAlertStatusResourceId    = -28508
  165. };
  166.  
  167. enum  {
  168.     gxUnivManualFeedIndex        = 2,
  169.     gxUnivFailToPrintIndex        = 3,
  170.     gxUnivPaperJamIndex            = 4,
  171.     gxUnivOutOfPaperIndex        = 5,
  172.     gxUnivNoPaperTrayIndex        = 6,
  173.     gxUnivPrinterReadyIndex        = 7,
  174.     gxUnivAlertBeforeIndex        = 9,
  175.     gxUnivAlertAfterIndex        = 10
  176. };
  177.  
  178. enum  {
  179.     gxDefaultStatusBufferSize    = 10,
  180.     gxManualFeedStatusBufferSize = 34,
  181.     gxOutOfPaperStatusBufferSize = 42
  182. };
  183.  
  184. #if defined(powerc) || defined (__powerc)
  185. #pragma options align=mac68k
  186. #endif
  187. struct gxManualFeedRecord {
  188.     Boolean                        canAutoFeed;
  189.     Str31                        paperTypeName;
  190. };
  191. #if defined(powerc) || defined(__powerc)
  192. #pragma options align=reset
  193. #endif
  194.  
  195. typedef struct gxManualFeedRecord gxManualFeedRecord;
  196.  
  197. #if defined(powerc) || defined (__powerc)
  198. #pragma options align=mac68k
  199. #endif
  200. struct gxOutOfPaperRecord {
  201.     Str31                        paperTypeName;
  202. };
  203. #if defined(powerc) || defined(__powerc)
  204. #pragma options align=reset
  205. #endif
  206.  
  207. typedef struct gxOutOfPaperRecord gxOutOfPaperRecord;
  208.  
  209. #if defined(powerc) || defined (__powerc)
  210. #pragma options align=mac68k
  211. #endif
  212. struct gxCustomizationRec {
  213.     short                        horizontalResolution;
  214.     short                        verticalResolution;
  215.     short                        upDriverType;
  216.     Point                        patternStretch;
  217.     short                        translatorSettings;
  218. };
  219. #if defined(powerc) || defined(__powerc)
  220. #pragma options align=reset
  221. #endif
  222.  
  223. typedef struct gxCustomizationRec gxCustomizationRec, *gxCustomizationPtr, **gxCustomizationHdl;
  224.  
  225. #if defined(powerc) || defined (__powerc)
  226. #pragma options align=mac68k
  227. #endif
  228. struct gxResolutionRec {
  229.     short                        rangeType;
  230.     short                        xMinimumResolution;
  231.     short                        xMaximumResolution;
  232.     short                        yMinimumResolution;
  233.     short                        yMaximumResolution;
  234.     short                        resolutionCount;
  235.     Point                        resolutions[1];
  236. };
  237. #if defined(powerc) || defined(__powerc)
  238. #pragma options align=reset
  239. #endif
  240.  
  241. typedef struct gxResolutionRec gxResolutionRec, *gxResolutionPtr, **gxResolutionHdl;
  242.  
  243. enum  {
  244.     gxPrintRecordVersion        = 8
  245. };
  246.  
  247. enum  {
  248.     gxAutoFeed                    = 0,
  249.     gxManualFeed                = 1,
  250.     gxCustomFeed                = 2
  251. };
  252.  
  253. enum  {
  254.     gxPreciseBitmap                = 0x0001,
  255.     gxBiggerPages                = 0x0002,
  256.     gxGraphicSmoothing            = 0x0004,
  257.     gxTextSmoothing                = 0x0008,
  258.     gxFontSubstitution            = 0x0010,
  259.     gxInvertPage                = 0x0020,
  260.     gxFlipPageHoriz                = 0x0040,
  261.     gxFlipPageVert                = 0x0080,
  262.     gxColorMode                    = 0x0100,
  263.     gxBidirectional                = 0x0200,
  264.     gxUserFlag0                    = 0x0400,
  265.     gxUserFlag1                    = 0x0800,
  266.     gxUserFlag2                    = 0x1000,
  267.     gxReservedFlag0                = 0x2000,
  268.     gxReservedFlag1                = 0x4000,
  269.     gxReservedFlag2                = 0x8000
  270. };
  271.  
  272. enum  {
  273.     gxPortraitOrientation        = 0,
  274.     gxLandscapeOrientation        = 1,
  275.     gxAltPortraitOrientation    = 2,
  276.     gxAltLandscapeOrientation    = 3
  277. };
  278.  
  279. enum  {
  280.     gxBestQuality                = 0,
  281.     gxFasterQuality                = 1,
  282.     gxDraftQuality                = 2
  283. };
  284.  
  285. enum  {
  286.     gxFirstTray                    = 0,
  287.     gxSecondTray                = 1,
  288.     gxThirdTray                    = 2
  289. };
  290.  
  291. enum  {
  292.     gxNoCoverPage                = 0,
  293.     gxFirstPageCover            = 1,
  294.     gxLastPageCover                = 2
  295. };
  296.  
  297. enum  {
  298.     gxUnidirectionalMotion        = 0,
  299.     gxBidirectionalMotion        = 1
  300. };
  301.  
  302. enum  {
  303.     gxNoFile                    = 0,
  304.     gxPostScriptFile            = 1
  305. };
  306.  
  307. #if defined(powerc) || defined (__powerc)
  308. #pragma options align=mac68k
  309. #endif
  310. struct gxUniversalPrintRecord {
  311.     short                        prVersion;
  312.     short                        appDev;
  313.     short                        appVRes;
  314.     short                        appHRes;
  315.     Rect                        appPage;
  316.     Rect                        appPaper;
  317.     short                        devType;
  318.     short                        pageV;
  319.     short                        pageH;
  320.     char                        fillByte;
  321.     char                        feed;
  322.     short                        devKind;
  323.     short                        devVRes;
  324.     short                        devHRes;
  325.     Rect                        devPage;
  326.     short                        actualCopies;
  327.     short                        options;
  328.     short                        reduction;
  329.     char                        orientation;
  330.     char                        qualityMode;
  331.     char                        coverPage;
  332.     char                        firstTray;
  333.     char                        remainingTray;
  334.     char                        headMotion;
  335.     char                        saveFile;
  336.     char                        userCluster1;
  337.     char                        userCluster2;
  338.     char                        userCluster3;
  339.     short                        firstPage;
  340.     short                        lastPage;
  341.     short                        copies;
  342.     char                        reserved1;
  343.     char                        reserved2;
  344.     PrIdleUPP                    pIdleProc;
  345.     Ptr                            pFileName;
  346.     short                        fileVol;
  347.     char                        fileVers;
  348.     char                        reserved3;
  349.     short                        printX[19];
  350. };
  351. #if defined(powerc) || defined(__powerc)
  352. #pragma options align=reset
  353. #endif
  354.  
  355. typedef struct gxUniversalPrintRecord gxUniversalPrintRecord, *gxUniversalPrintRecordPtr, **gxUniversalPrintRecordHdl;
  356.  
  357. #ifdef __cplusplus
  358. extern "C" {
  359. #endif
  360.  
  361. extern OSErr Forward_GXPrOpenDoc(THPrint, TPPrPort *)
  362.  TWOWORDINLINE(0x7036, 0xABFB);
  363. extern OSErr Forward_GXPrCloseDoc(TPPrPort)
  364.  TWOWORDINLINE(0x7036, 0xABFB);
  365. extern OSErr Forward_GXPrOpenPage(TPPrPort, TPRect, Point resolution)
  366.  TWOWORDINLINE(0x7036, 0xABFB);
  367. extern OSErr Forward_GXPrClosePage(TPPrPort)
  368.  TWOWORDINLINE(0x7036, 0xABFB);
  369. extern OSErr Forward_GXPrintDefault(THPrint)
  370.  TWOWORDINLINE(0x7036, 0xABFB);
  371. extern OSErr Forward_GXPrStlDialog(THPrint, Boolean *)
  372.  TWOWORDINLINE(0x7036, 0xABFB);
  373. extern OSErr Forward_GXPrJobDialog(THPrint, Boolean *)
  374.  TWOWORDINLINE(0x7036, 0xABFB);
  375. extern OSErr Forward_GXPrStlInit(THPrint, TPPrDlg *)
  376.  TWOWORDINLINE(0x7036, 0xABFB);
  377. extern OSErr Forward_GXPrJobInit(THPrint, TPPrDlg *)
  378.  TWOWORDINLINE(0x7036, 0xABFB);
  379. extern OSErr Forward_GXPrDlgMain(THPrint, PDlgInitUPP, Boolean *)
  380.  TWOWORDINLINE(0x7036, 0xABFB);
  381. extern OSErr Forward_GXPrValidate(THPrint, Boolean *)
  382.  TWOWORDINLINE(0x7036, 0xABFB);
  383. extern OSErr Forward_GXPrJobMerge(THPrint, THPrint)
  384.  TWOWORDINLINE(0x7036, 0xABFB);
  385. extern OSErr Forward_GXPrGeneral(Ptr)
  386.  TWOWORDINLINE(0x7036, 0xABFB);
  387. extern OSErr Forward_GXConvertPrintRecordTo(THPrint)
  388.  TWOWORDINLINE(0x7036, 0xABFB);
  389. extern OSErr Forward_GXConvertPrintRecordFrom(THPrint)
  390.  TWOWORDINLINE(0x7036, 0xABFB);
  391. extern OSErr Forward_GXPrintRecordToJob(THPrint, gxJob)
  392.  TWOWORDINLINE(0x7036, 0xABFB);
  393. #ifdef __cplusplus
  394. }
  395. #endif
  396.  
  397. typedef long gxRasterPlaneOptions;
  398.  
  399. enum  {
  400.     gxDefaultOffscreen            = 0x00000000,
  401.     gxDontSetHalftone            = 0x00000001,
  402.     gxDotTypeIsDitherLevel        = 0x00000002
  403. };
  404.  
  405. #if defined(powerc) || defined (__powerc)
  406. #pragma options align=mac68k
  407. #endif
  408. struct gxPlaneSetupRec {
  409.     gxRasterPlaneOptions        planeOptions;
  410.     gxHalftone                    planeHalftone;
  411.     gxColorSpace                planeSpace;
  412.     gxColorSet                    planeSet;
  413.     gxColorProfile                planeProfile;
  414. };
  415. #if defined(powerc) || defined(__powerc)
  416. #pragma options align=reset
  417. #endif
  418.  
  419. typedef struct gxPlaneSetupRec gxPlaneSetupRec;
  420.  
  421. #if defined(powerc) || defined (__powerc)
  422. #pragma options align=mac68k
  423. #endif
  424. struct gxOffscreenSetupRec {
  425.     short                        width;
  426.     short                        minHeight;
  427.     short                        maxHeight;
  428.     Fixed                        ramPercentage;
  429.     long                        ramSlop;
  430.     short                        depth;
  431.     gxMapping                    vpMapping;
  432.     gxMapping                    vdMapping;
  433.     short                        planes;
  434.     gxPlaneSetupRec                planeSetup[4];
  435. };
  436. #if defined(powerc) || defined(__powerc)
  437. #pragma options align=reset
  438. #endif
  439.  
  440. typedef struct gxOffscreenSetupRec gxOffscreenSetupRec;
  441.  
  442. #if defined(powerc) || defined (__powerc)
  443. #pragma options align=mac68k
  444. #endif
  445. struct gxOffscreenPlaneRec {
  446.     gxViewPort                    theViewPort;
  447.     gxViewDevice                theDevice;
  448.     gxViewGroup                    theViewGroup;
  449.     gxShape                        theBitmap;
  450.     gxBitmap                    theBits;
  451. };
  452. #if defined(powerc) || defined(__powerc)
  453. #pragma options align=reset
  454. #endif
  455.  
  456. typedef struct gxOffscreenPlaneRec gxOffscreenPlaneRec;
  457.  
  458. #if defined(powerc) || defined (__powerc)
  459. #pragma options align=mac68k
  460. #endif
  461. struct gxOffscreenRec {
  462.     short                        numberOfPlanes;
  463.     Handle                        offscreenStorage;
  464.     gxOffscreenPlaneRec            thePlanes[1];
  465. };
  466. #if defined(powerc) || defined(__powerc)
  467. #pragma options align=reset
  468. #endif
  469.  
  470. typedef struct gxOffscreenRec gxOffscreenRec, *gxOffscreenPtr, **gxOffscreenHdl;
  471.  
  472. typedef long gxRasterRenderOptions;
  473.  
  474. enum  {
  475.     gxDefaultRaster                = 0x00000000,
  476.     gxDontResolveTransferModes    = 0x00000001,
  477.     gxRenderInReverse            = 0x00000002,
  478.     gxOnePlaneAtATime            = 0x00000004,
  479.     gxSendAllBands                = 0x00000008
  480. };
  481.  
  482. #if defined(powerc) || defined (__powerc)
  483. #pragma options align=mac68k
  484. #endif
  485. struct gxRasterPrefsRec {
  486.     gxRasterRenderOptions        renderOptions;
  487.     Fixed                        hImageRes;
  488.     Fixed                        vImageRes;
  489.     short                        minBandSize;
  490.     short                        maxBandSize;
  491.     Fixed                        ramPercentage;
  492.     long                        ramSlop;
  493.     short                        depth;
  494.     short                        numPlanes;
  495.     gxPlaneSetupRec                planeSetup[1];
  496. };
  497. #if defined(powerc) || defined(__powerc)
  498. #pragma options align=reset
  499. #endif
  500.  
  501. typedef struct gxRasterPrefsRec gxRasterPrefsRec, *gxRasterPrefsPtr, **gxRasterPrefsHdl;
  502.  
  503. typedef long gxRasterPackageOptions;
  504.  
  505. enum  {
  506.     gxSendAllColors                = 0x00000001,
  507.     gxInterlaceColor            = 0x00000002,
  508.     gxOverlayColor                = 0x00000004,
  509.     gxUseColor                    = (gxInterlaceColor|gxOverlayColor)
  510. };
  511.  
  512. #if defined(powerc) || defined (__powerc)
  513. #pragma options align=mac68k
  514. #endif
  515. struct gxRasterPackageRec {
  516.     Ptr                            bufferSize;
  517.     short                        colorPasses;
  518.     short                        headHeight;
  519.     short                        numberPasses;
  520.     short                        passOffset;
  521.     gxRasterPackageOptions        packageOptions;
  522. };
  523. #if defined(powerc) || defined(__powerc)
  524. #pragma options align=reset
  525. #endif
  526.  
  527. typedef struct gxRasterPackageRec gxRasterPackageRec, *gxRasterPackagePtr, **gxRasterPackageHdl;
  528.  
  529. #if defined(powerc) || defined (__powerc)
  530. #pragma options align=mac68k
  531. #endif
  532. struct gxRasterPackageBitmapRec {
  533.     gxBitmap                    *bitmapToPackage;
  534.     unsigned short                startRaster;
  535.     unsigned short                colorBand;
  536.     Boolean                        isBandDirty;
  537.     Rect                        dirtyRect;
  538. };
  539. #if defined(powerc) || defined(__powerc)
  540. #pragma options align=reset
  541. #endif
  542.  
  543. typedef struct gxRasterPackageBitmapRec gxRasterPackageBitmapRec;
  544.  
  545. #if defined(powerc) || defined (__powerc)
  546. #pragma options align=mac68k
  547. #endif
  548. struct gxStandardNumberRec {
  549.     short                        numberType;
  550.     short                        minWidth;
  551.     char                        padChar;
  552.     char                        alignment;
  553.     Str31                        startString;
  554.     Str31                        endString;
  555. };
  556. #if defined(powerc) || defined(__powerc)
  557. #pragma options align=reset
  558. #endif
  559.  
  560. typedef struct gxStandardNumberRec gxStandardNumberRec, *gxStandardNumberPtr;
  561.  
  562. #if defined(powerc) || defined (__powerc)
  563. #pragma options align=mac68k
  564. #endif
  565. struct gxRasterPackageControlsRec {
  566.     short                        startPageStringID;
  567.     short                        formFeedStringID;
  568.     short                        forwardMax;
  569.     gxStandardNumberRec            forwardLineFeed;
  570.     short                        reverseMax;
  571.     gxStandardNumberRec            reverseLineFeed;
  572. };
  573. #if defined(powerc) || defined(__powerc)
  574. #pragma options align=reset
  575. #endif
  576.  
  577. typedef struct gxRasterPackageControlsRec gxRasterPackageControlsRec, *gxRasterPackageControlsPtr, **gxRasterPackageControlsHdl;
  578.  
  579. #if defined(powerc) || defined (__powerc)
  580. #pragma options align=mac68k
  581. #endif
  582. struct gxRasterImageDataRec {
  583.     gxRasterRenderOptions        renderOptions;
  584.     Fixed                        hImageRes;
  585.     Fixed                        vImageRes;
  586.     short                        minBandSize;
  587.     short                        maxBandSize;
  588.     gxRectangle                    pageSize;
  589.     short                        currentYPos;
  590.     gxRasterPackageRec            packagingInfo;
  591.     Boolean                        optionsValid;
  592.     gxRasterPackageControlsRec    packageControls;
  593.     gxOffscreenSetupRec            theSetup;
  594. };
  595. #if defined(powerc) || defined(__powerc)
  596. #pragma options align=reset
  597. #endif
  598.  
  599. typedef struct gxRasterImageDataRec gxRasterImageDataRec, *gxRasterImageDataPtr, **gxRasterImageDataHdl;
  600.  
  601. #ifdef __cplusplus
  602. extern "C" {
  603. #endif
  604.  
  605. #define GXRASTERMSGGLUE(selector) SendMessageGlue(0x0001, selector)
  606.  
  607. extern OSErr Send_GXRasterDataIn(gxOffscreenHdl, gxRectangle *bandRectangle, gxRectangle *dirtyRectangle)
  608.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 0, 0xABFB);
  609. extern OSErr Forward_GXRasterDataIn(gxOffscreenHdl, gxRectangle *bandRectangle, gxRectangle *dirtyRectangle)
  610.  TWOWORDINLINE(0x7036, 0xABFB);
  611. extern OSErr Send_GXRasterLineFeed(short *lineFeedSize, Ptr buffer, unsigned long *bufferPos, gxRasterImageDataHdl)
  612.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 1, 0xABFB);
  613. extern OSErr Forward_GXRasterLineFeed(short *lineFeedSize, Ptr buffer, unsigned long *bufferPos, gxRasterImageDataHdl)
  614.  TWOWORDINLINE(0x7036, 0xABFB);
  615. extern OSErr Send_GXRasterPackageBitmap(gxRasterPackageBitmapRec *whatToPackage, Ptr buffer, unsigned long *bufferPos, gxRasterImageDataHdl)
  616.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 2, 0xABFB);
  617. extern OSErr Forward_GXRasterPackageBitmap(gxRasterPackageBitmapRec *whatToPackage, Ptr buffer, unsigned long *bufferPos, gxRasterImageDataHdl)
  618.  TWOWORDINLINE(0x7036, 0xABFB);
  619. #ifdef __cplusplus
  620. }
  621. #endif
  622.  
  623. typedef long gxVectorRenderOptions;
  624.  
  625. enum  {
  626.     gxColorSort                    = 0x00000001,
  627.     gxATransferMode                = 0x00000002,
  628.     gxNoOverlap                    = 0x00000004,
  629.     gxAColorBitmap                = 0x00000008,
  630.     gxSortbyPenPos                = 0x00000010,
  631.     gxPenLessPlotter            = 0x00000020,
  632.     gxCutterPlotter                = 0x00000040,
  633.     gxNoBackGround                = 0x00000080
  634. };
  635.  
  636. typedef long gxVectorShapeOptions;
  637.  
  638. enum  {
  639.     gxUnidirectionalFill        = 0x00000001,
  640.     gxAlsoOutlineFilledShape    = 0x00000002
  641. };
  642.  
  643. #if defined(powerc) || defined (__powerc)
  644. #pragma options align=mac68k
  645. #endif
  646. struct gxVHalftoneCompRec {
  647.     Fixed                        angle;
  648.     long                        penIndex;
  649. };
  650. #if defined(powerc) || defined(__powerc)
  651. #pragma options align=reset
  652. #endif
  653.  
  654. typedef struct gxVHalftoneCompRec gxVHalftoneCompRec;
  655.  
  656. #if defined(powerc) || defined (__powerc)
  657. #pragma options align=mac68k
  658. #endif
  659. struct gxVHalftoneRec {
  660.     gxColorSpace                halftoneSpace;
  661.     gxVHalftoneCompRec            halftoneComps[4];
  662.     long                        penIndexForBW;
  663. };
  664. #if defined(powerc) || defined(__powerc)
  665. #pragma options align=reset
  666. #endif
  667.  
  668. typedef struct gxVHalftoneRec gxVHalftoneRec;
  669.  
  670. #if defined(powerc) || defined (__powerc)
  671. #pragma options align=mac68k
  672. #endif
  673. struct gxVectorShapeDataRec {
  674.     gxVectorShapeOptions        shapeOptions;
  675.     long                        maxPolyPoints;
  676.     Fixed                        shapeError;
  677.     Fixed                        textSize;
  678.     Fixed                        frameSize;
  679. };
  680. #if defined(powerc) || defined(__powerc)
  681. #pragma options align=reset
  682. #endif
  683.  
  684. typedef struct gxVectorShapeDataRec gxVectorShapeDataRec;
  685.  
  686. #if defined(powerc) || defined (__powerc)
  687. #pragma options align=mac68k
  688. #endif
  689. struct gxVectorImageDataRec {
  690.     gxVectorRenderOptions        renderOptions;
  691.     Fixed                        devRes;
  692.     gxTransform                    devTransform;
  693.     gxColorSet                    clrSet;
  694.     gxColor                        bgColor;
  695.     gxVHalftoneRec                halftoneInfo;
  696.     gxPenTableHdl                hPenTable;
  697.     gxRectangle                    pageRect;
  698.     gxVectorShapeDataRec        shapeData;
  699. };
  700. #if defined(powerc) || defined(__powerc)
  701. #pragma options align=reset
  702. #endif
  703.  
  704. typedef struct gxVectorImageDataRec gxVectorImageDataRec, *gxVectorImageDataPtr, **gxVectorImageDataHdl;
  705.  
  706. #ifdef __cplusplus
  707. extern "C" {
  708. #endif
  709.  
  710. #define GXVECTORMSGGLUE(selector) SendMessageGlue(0x0001, selector)
  711.  
  712. extern OSErr Send_GXVectorPackageShape(gxShape, long penIndex)
  713.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 0, 0xABFB);
  714. extern OSErr Forward_GXVectorPackageShape(gxShape, long penIndex)
  715.  TWOWORDINLINE(0x7036, 0xABFB);
  716. extern OSErr Send_GXVectorLoadPens(gxPenTableHdl, long *shapeCounts, boolean *penTableChanged)
  717.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 1, 0xABFB);
  718. extern OSErr Forward_GXVectorLoadPens(gxPenTableHdl, long *shapeCounts, boolean *penTableChanged)
  719.  TWOWORDINLINE(0x7036, 0xABFB);
  720. extern OSErr Send_GXVectorVectorizeShape(gxShape, long penIndex, gxVectorShapeDataRec *)
  721.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 2, 0xABFB);
  722. extern OSErr Forward_GXVectorVectorizeShape(gxShape, long penIndex, gxVectorShapeDataRec *)
  723.  TWOWORDINLINE(0x7036, 0xABFB);
  724. #ifdef __cplusplus
  725. }
  726. #endif
  727.  
  728. enum  {
  729.     gxPostSynonym                = (long)'post'
  730. };
  731.  
  732. typedef long gxPostScriptRenderOptions;
  733.  
  734. enum  {
  735.     gxNeedsHexOption            = 0x00000001,
  736.     gxNeedsCommentsOption        = 0x00000002,
  737.     gxBoundingBoxesOption        = 0x00000004,
  738.     gxPortablePostScriptOption    = 0x00000008,
  739.     gxTextClipsToPathOption        = 0x00000010,
  740.     gxFlattenClipPathOption        = 0x00000020,
  741.     gxUseCharpath1Option        = 0x00000040,
  742.     gxUseLevel2ColorOption        = 0x00000080,
  743.     gxNoEPSIllegalOperators        = 0x00000100,
  744.     gxEPSTargetOption            = gxNoEPSIllegalOperators + gxNeedsCommentsOption + gxBoundingBoxesOption
  745. };
  746.  
  747. #if defined(powerc) || defined (__powerc)
  748. #pragma options align=mac68k
  749. #endif
  750. struct gxPrinterGlyphsRec {
  751.     gxFont                        theFont;
  752.     long                        nGlyphs;
  753.     gxFontPlatform                platform;
  754.     gxFontScript                script;
  755.     gxFontLanguage                language;
  756.     long                        vmUsage;
  757.     unsigned long                glyphBits[1];
  758. };
  759. #if defined(powerc) || defined(__powerc)
  760. #pragma options align=reset
  761. #endif
  762.  
  763. typedef struct gxPrinterGlyphsRec gxPrinterGlyphsRec;
  764.  
  765. #if defined(powerc) || defined (__powerc)
  766. #pragma options align=mac68k
  767. #endif
  768. struct gxPostScriptImageDataRec {
  769.     short                        languageLevel;
  770.     gxColorSpace                devCSpace;
  771.     gxColorProfile                devCProfile;
  772.     gxPostScriptRenderOptions    renderOptions;
  773.     long                        pathLimit;
  774.     short                        gsaveLimit;
  775.     short                        opStackLimit;
  776.     scalerStreamTypeFlag        fontType;
  777.     long                        printerVM;
  778.     long                        reserved0;
  779. };
  780. #if defined(powerc) || defined(__powerc)
  781. #pragma options align=reset
  782. #endif
  783.  
  784. typedef struct gxPostScriptImageDataRec gxPostScriptImageDataRec, *gxPostScriptImageDataPtr, **gxPostScriptImageDataHdl;
  785.  
  786. #if defined(powerc) || defined (__powerc)
  787. #pragma options align=mac68k
  788. #endif
  789. struct gxProcSetListRec {
  790.     Signature                    clientid;
  791.     OSType                        controlType;
  792.     short                        controlid;
  793.     OSType                        dataType;
  794.     long                        reserved0;
  795. };
  796. #if defined(powerc) || defined(__powerc)
  797. #pragma options align=reset
  798. #endif
  799.  
  800. typedef struct gxProcSetListRec gxProcSetListRec, *gxProcSetListPtr, **gxProcSetListHdl;
  801.  
  802. enum  {
  803.     gxPrinterOK                    = 0,
  804.     gxIntializePrinter            = 1,
  805.     gxFilePrinting                = 2,
  806.     gxResetPrinter                = 128
  807. };
  808.  
  809. #ifdef __cplusplus
  810. extern "C" {
  811. #endif
  812.  
  813. #define GXPOSTSCRIPTMSGGLUE(selector) SendMessageGlue(0x0001, selector)
  814.  
  815. extern OSErr Send_GXPostScriptQueryPrinter(long *)
  816.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 0, 0xABFB);
  817. extern OSErr Forward_GXPostScriptQueryPrinter(long *)
  818.  TWOWORDINLINE(0x7036, 0xABFB);
  819. extern OSErr Send_GXPostScriptInitializePrinter(void)
  820.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 1, 0xABFB);
  821. extern OSErr Forward_GXPostScriptInitializePrinter(void)
  822.  TWOWORDINLINE(0x7036, 0xABFB);
  823. extern OSErr Send_GXPostScriptResetPrinter(void)
  824.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 2, 0xABFB);
  825. extern OSErr Forward_GXPostScriptResetPrinter(void)
  826.  TWOWORDINLINE(0x7036, 0xABFB);
  827. extern OSErr Send_GXPostScriptExitServer(void)
  828.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 3, 0xABFB);
  829. extern OSErr Forward_GXPostScriptExitServer(void)
  830.  TWOWORDINLINE(0x7036, 0xABFB);
  831. extern OSErr Send_GXPostScriptGetStatusText(Handle)
  832.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 4, 0xABFB);
  833. extern OSErr Forward_GXPostScriptGetStatusText(Handle)
  834.  TWOWORDINLINE(0x7036, 0xABFB);
  835. extern OSErr Send_GXPostScriptGetPrinterText(Handle)
  836.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 5, 0xABFB);
  837. extern OSErr Forward_GXPostScriptGetPrinterText(Handle)
  838.  TWOWORDINLINE(0x7036, 0xABFB);
  839. extern OSErr Send_GXPostScriptScanStatusText(Handle)
  840.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 6, 0xABFB);
  841. extern OSErr Forward_GXPostScriptScanStatusText(Handle)
  842.  TWOWORDINLINE(0x7036, 0xABFB);
  843. extern OSErr Send_GXPostScriptScanPrinterText(Handle)
  844.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 7, 0xABFB);
  845. extern OSErr Forward_GXPostScriptScanPrinterText(Handle)
  846.  TWOWORDINLINE(0x7036, 0xABFB);
  847. extern OSErr Send_GXPostScriptGetDocumentProcSetList(gxProcSetListHdl, gxPostScriptImageDataHdl)
  848.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 8, 0xABFB);
  849. extern OSErr Forward_GXPostScriptGetDocumentProcSetList(gxProcSetListHdl, gxPostScriptImageDataHdl)
  850.  TWOWORDINLINE(0x7036, 0xABFB);
  851. extern OSErr Send_GXPostScriptDownloadProcSetList(gxProcSetListHdl, gxPostScriptImageDataHdl)
  852.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 9, 0xABFB);
  853. extern OSErr Forward_GXPostScriptDownloadProcSetList(gxProcSetListHdl, gxPostScriptImageDataHdl)
  854.  TWOWORDINLINE(0x7036, 0xABFB);
  855. extern OSErr Send_GXPostScriptGetPrinterGlyphsInformation(gxPrinterGlyphsRec *)
  856.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 10, 0xABFB);
  857. extern OSErr Forward_GXPostScriptGetPrinterGlyphsInformation(gxPrinterGlyphsRec *)
  858.  TWOWORDINLINE(0x7036, 0xABFB);
  859. extern OSErr Send_GXPostScriptStreamFont(gxFont fontref, scalerStream *streamPtr)
  860.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 11, 0xABFB);
  861. extern OSErr Forward_GXPostScriptPostScriptStreamFont(gxFont fontref, scalerStream *streamPtr)
  862.  TWOWORDINLINE(0x7036, 0xABFB);
  863. extern OSErr Send_GXPostScriptDoDocumentHeader(gxPostScriptImageDataHdl)
  864.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 12, 0xABFB);
  865. extern OSErr Forward_GXPostScriptDoDocumentHeader(gxPostScriptImageDataHdl)
  866.  TWOWORDINLINE(0x7036, 0xABFB);
  867. extern OSErr Send_GXPostScriptDoDocumentSetup(gxPostScriptImageDataHdl)
  868.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 13, 0xABFB);
  869. extern OSErr Forward_GXPostScriptDoDocumentSetup(gxPostScriptImageDataHdl)
  870.  TWOWORDINLINE(0x7036, 0xABFB);
  871. extern OSErr Send_GXPostScriptDoDocumentTrailer(gxPostScriptImageDataHdl)
  872.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 14, 0xABFB);
  873. extern OSErr Forward_GXPostScriptDoDocumentTrailer(gxPostScriptImageDataHdl)
  874.  TWOWORDINLINE(0x7036, 0xABFB);
  875. extern OSErr Send_GXPostScriptDoPageSetup(gxFormat, long, gxPostScriptImageDataHdl)
  876.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 15, 0xABFB);
  877. extern OSErr Forward_GXPostScriptDoPageSetup(gxFormat, long, gxPostScriptImageDataHdl)
  878.  TWOWORDINLINE(0x7036, 0xABFB);
  879. extern OSErr Send_GXPostScriptSelectPaperType(gxPaperType, long, gxPostScriptImageDataHdl)
  880.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 16, 0xABFB);
  881. extern OSErr Forward_GXPostScriptSelectPaperType(gxPaperType, long, gxPostScriptImageDataHdl)
  882.  TWOWORDINLINE(0x7036, 0xABFB);
  883. extern OSErr Send_GXPostScriptDoPageTrailer(gxPostScriptImageDataHdl)
  884.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 17, 0xABFB);
  885. extern OSErr Forward_GXPostScriptDoPageTrailer(gxPostScriptImageDataHdl)
  886.  TWOWORDINLINE(0x7036, 0xABFB);
  887. #if defined(applec) && !defined(powerc)
  888. extern OSErr Send_GXPostScriptEjectPage(gxPaperType, long pagenumber, long copiescount, short erasepage, gxPostScriptImageDataHdl)
  889.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 18, 0xABFB);
  890. extern OSErr Forward_GXPostScriptEjectPage(gxPaperType, long pagenumber, long copiescount, short erasepage, gxPostScriptImageDataHdl)
  891.  TWOWORDINLINE(0x7036, 0xABFB);
  892. #else
  893. extern OSErr Send_GXPostScriptEjectPage(gxPaperType, long pagenumber, long copiescount, long erasepage, gxPostScriptImageDataHdl)
  894.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 18, 0xABFB);
  895. extern OSErr Forward_GXPostScriptEjectPage(gxPaperType, long pagenumber, long copiescount, long erasepage, gxPostScriptImageDataHdl)
  896.  TWOWORDINLINE(0x7036, 0xABFB);
  897. #endif
  898.  
  899. extern OSErr Send_GXPostScriptEjectPendingPage(long ejectFlags, Boolean *pageWasEjected)
  900.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 20, 0xABFB);
  901. extern OSErr Forward_GXPostScriptEjectPendingPage(long ejectFlags, Boolean *pageWasEjected)
  902.  TWOWORDINLINE(0x7036, 0xABFB);
  903. extern OSErr Send_GXPostScriptProcessShape(gxShape page, long trcount, gxTransform trlist[])
  904.  FIVEWORDINLINE(0x7032, 0x223C, 0x0001, 19, 0xABFB);
  905. extern OSErr Forward_GXPostScriptProcessShape(gxShape page, long trcount, gxTransform trlist[])
  906.  TWOWORDINLINE(0x7036, 0xABFB);
  907. #ifdef __cplusplus
  908. }
  909. #endif
  910.  
  911. enum  {
  912.     gxMissingImagePointer        = -4
  913. };
  914.  
  915. #define GXDRIVERAPIGLUE(selector) {0x203C, 0x0002, selector, 0xABFE}
  916.  
  917. #ifdef __cplusplus
  918. extern "C" {
  919. #endif
  920.  
  921. extern OSErr GXAddPrinterViewDevice(gxPrinter, gxViewDevice)
  922.  FOURWORDINLINE(0x203C, 0x0002, 0, 0xABFE);
  923. extern OSErr GXGetAvailableJobFormatModes(gxJobFormatModeTableHdl *)
  924.  FOURWORDINLINE(0x203C, 0x0002, 1, 0xABFE);
  925. extern OSErr GXSetPreferredJobFormatMode(gxJobFormatMode, Boolean directOnly)
  926.  FOURWORDINLINE(0x203C, 0x0002, 2, 0xABFE);
  927. #if defined(applec) && !defined(powerc)
  928. extern OSErr GXPrintingAlert(short iconId, short txtSize, short defaultTitleNum, short cancelTitleNum, short textLength, Ptr pAlertMsg, StringPtr actionTitle, StringPtr title2, StringPtr title3, StringPtr msgFont, ModalFilterUPP filterProc, short *itemHit, StringPtr alertTitle)
  929.  FOURWORDINLINE(0x203C, 0x0002, 3, 0xABFE);
  930. extern OSErr GXGetPrintingAlert(short alertResId, ModalFilterUPP, short *itemHit)
  931.  FOURWORDINLINE(0x203C, 0x0002, 4, 0xABFE);
  932. extern OSErr GXFetchDTPData(Str31 dtpName, OSType theType, short theID, Handle *theData)
  933.  FOURWORDINLINE(0x203C, 0x0002, 5, 0xABFE);
  934. extern OSErr GXWriteDTPData(Str31 dtpName, OSType theType, short theID, Handle theData)
  935.  FOURWORDINLINE(0x203C, 0x0002, 6, 0xABFE);
  936. extern OSErr GXHandleChooserMessage(gxJob *aJob, Str31 driverName, short message, short caller, StringPtr objName, StringPtr zoneName, ListHandle theList, long p2)
  937.  FOURWORDINLINE(0x203C, 0x0002, 7, 0xABFE);
  938. #else
  939. extern OSErr GXPrintingAlert(long iconId, long txtSize, long defaultTitleNum, long cancelTitleNum, long textLength, Ptr pAlertMsg, StringPtr actionTitle, StringPtr title2, StringPtr title3, StringPtr msgFont, ModalFilterUPP filterProc, short *itemHit, StringPtr alertTitle)
  940.  FOURWORDINLINE(0x203C, 0x0002, 3, 0xABFE);
  941. extern OSErr GXGetPrintingAlert(long alertResId, ModalFilterUPP, short *itemHit)
  942.  FOURWORDINLINE(0x203C, 0x0002, 4, 0xABFE);
  943. extern OSErr GXFetchDTPData(Str31 dtpName, OSType theType, long theID, Handle *theData)
  944.  FOURWORDINLINE(0x203C, 0x0002, 5, 0xABFE);
  945. extern OSErr GXWriteDTPData(Str31 dtpName, OSType theType, long theID, Handle theData)
  946.  FOURWORDINLINE(0x203C, 0x0002, 6, 0xABFE);
  947. extern OSErr GXHandleChooserMessage(gxJob *aJob, Str31 driverName, long message, long caller, StringPtr objName, StringPtr zoneName, ListHandle theList, long p2)
  948.  FOURWORDINLINE(0x203C, 0x0002, 7, 0xABFE);
  949. #endif
  950.  
  951. #ifdef __cplusplus
  952. }
  953. #endif
  954.  
  955. #endif
  956.  
  957.